package com.yao.fin.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.yao.common.enums.business.fin.LabelEnum;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 财务模版表
*
* @author autoCode
* @version 1.0.0-SNAPSHOT
* @date 2020-04-09
*/
@Data
public class FinancialTemplateEntity implements Serializable {

private static final long serialVersionUID = 1L;

    /**
    * 自增主键
    */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Integer id;
    /**
    * 有效状态0-有效
    */
    @TableField(value = "`status`", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_EMPTY)
    private Byte status;
    /**
    * 习题日期
    */
    @TableField(value = "`trainDate`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String trainDate;
    /**
    * 1-中级 3-注会CPA
    */
    @TableField(value = "`label`", updateStrategy = FieldStrategy.NOT_EMPTY, whereStrategy = FieldStrategy.NOT_NULL)
    private LabelEnum label;
    /**
     * 科目
     */
    @TableField(value = "`course`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer course;
    /**
    * 1-单选 2-多选
    */
    @TableField(value = "`single`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer single;
    /**
    * 题目
    */
    @TableField(value = "`question`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String question;
    /**
    * 答案
    */
    @TableField(value = "`answer`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String answer;
    /**
    * 答案解析
    */
    @TableField(value = "`explain`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String explain;
    /**
    * 创建时间
    */
    @TableField(value = "`createTime`", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
    * 更新时间
    */
    @TableField(value = "`updateTime`", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}